-module(mysql_test).
-export([ask_something/0,initialize/0]).

%% Ask database main, table map for row with id hej
initialize() ->
   crypto:start(),
   application:start(emysql),
   %% Creating a pool...
   %% poolname, members in pool???, mysql user,
   %% mysql password, host, port, database name,
   %% text encoding
   emysql:add_pool(pool, 1, "root", "", "localhost", 3306, "main", utf8).

ask_something() ->
   emysql:execute(pool,list_to_binary("SELECT value FROM map where id='"++"hej"++"';")).
